package cn.ryh.jdbctemplate.entity;

import java.io.Serializable;
import java.sql.Date;

/**
 * @ClassName User
 * @Description User表实体类
 * @Author RaoYH
 * @Date 2018/10/30 17:11
 */
public class User implements Serializable{
    private static final long serialVersionUID = 1L;
    private Integer id;
    private String username;
    private Date birthday;
    private Integer sex;
    private String address;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return username;
    }

    public void setUserName(String userName) {
        this.username = userName;
    }

    public Date getBirthDay() {
        return birthday;
    }

    public void setBirthDay(Date birthDay) {
        this.birthday = birthDay;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    @Override
    public String toString() {
        return "id:"+id+"username:"+ username + "birthday:"+birthday +"sex:"+ sex + "address:"+address;
    }
}
